﻿<%@ Page Title="Gerenciar Matriculas de um aluno" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Matricula_ListarPorCpf.aspx.cs" Inherits="ProjetoJornada.Interno.Matricula_ListarPorCpf" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>
    <script src="../javascript/validacao_mascara.js" type="text/javascript"></script>
    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 151px;
        }
        .style2
        {
            width: 202px;
        }
        .style3
        {
            width: 12px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table id="formulario" style="width: 100%;">
        <tr>
            <td colspan="2" align="left">
                <asp:Label ID="lblMensagem" ForeColor="Red" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left">
                <strong>Escolha um aluno para gerenciar sua matrícula</strong>
                <br />
                <br />
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label2" runat="server" Text="CPF"></asp:Label>
            </td>
            <td class="style2">
                <asp:TextBox ID="CPFTextBox" MaxLength="14" runat="server" TabIndex="2" onKeyDown="Mascara(this,Cpf);"
                            onKeyPress="return somenteNumeros(event); Mascara(this,Cpf);" onKeyUp="Mascara(this,Cpf);"></asp:TextBox>
                <asp:ImageButton ID="ImageButton2" ImageUrl="~/imagens/lupa_cep.png" Width="24px"
                    Height="24px" runat="server" onclick="ImageButton2_Click" />
            </td>
        </tr>

        <tr>
            <td colspan="2" class="style1 alinhamentoDireita">
                <asp:GridView ID="GridView_Matricula" runat="server" AutoGenerateColumns="False" 
        onrowdeleting="GridView_Matricula_RowDeleting" BackColor="White" 
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
        ForeColor="Black" GridLines="Vertical" 
            onrowdatabound="GridView_Matricula_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="Nome">
                <ItemTemplate>
                    <asp:Label ID="lblNome" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Curso">
                <ItemTemplate>
                    <asp:Label ID="lblCurso" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Data da Matricula">
                <ItemTemplate>
                    <asp:Label ID="lblData" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Status Pagamento">
                <ItemTemplate>
                    <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle Height="20px" HorizontalAlign="center"/>
            </asp:TemplateField>            
           
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%#"Matricula_Editar.aspx?id=" + Eval("Id")%>'>
                        <asp:Image ID="imgEdit" runat="server" BorderStyle="None" ImageUrl="../imagens/edit.png" />
                    </a>
                </ItemTemplate>
                <ItemStyle Height="20px" HorizontalAlign="center"/>
            </asp:TemplateField>            
            
            <asp:CommandField ShowDeleteButton="True" ButtonType="Image" 
                DeleteImageUrl="~/imagens/delete.png" DeleteText="" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#CCCCCC" />
    </asp:GridView>
            </td>
        </tr>
      
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
